package lanceur;

import javax.swing.JOptionPane;

import client.Client;

public class LanceurClient {
	public static void main(String[] args) {
		String response = JOptionPane.showInputDialog(null,
				  "Lancer Client",
				  "Entree Nombre du Client",
				  JOptionPane.QUESTION_MESSAGE);
		int nb=Integer.parseInt(response);
		System.out.println(nb);
		if(nb>0)
		{
			Client Clients[]=new Client[nb];
			for(int i=0;i<nb;i++)
			{
				Clients[i]=new Client();
			}
			for (int i = 0; i < nb; i++) {
				Clients[i].start();
			}
		}
		
	}
	
}
